package com.mzkj.wanjulaile.mobile.api.modules.account.service;

import com.mzkj.wanjulaile.mobile.api.common.entity.ResultEntity;
import com.mzkj.wanjulaile.mobile.api.modules.account.entity.Account;

import java.util.List;
import java.util.Map;

/**
 * Created by wangxw on 2016/12/12.
 */
public interface AccountService {

    Account getByPhone(String phone);

    Account getAccount(String id);

    ResultEntity<Account> getById(String id);

    ResultEntity<Account> get(String accessToken);


    List<Account> findList();

    int update(Account account);

     Account get2(String id);

    void calTotalDeposit(Account account);

    Account getByUnionID(String unionID);

    void updateAccountNick(Account account);

    void updateAccountImg(Account account);


    Account getDetailInfoByAccountId(String accountId);

    Account getAccountByAccessToken(String accessToken);

    Account findAccountByOpenid(String openid);
}
